package com.scott.spring.webmvc.auto.config;

import org.springframework.lang.Nullable;
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class AutoConfigDispatcherServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {


    @Nullable
    protected Class<?>[] getRootConfigClasses() {
        return new Class[0];
    }

    @Nullable
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{SpringWebMvcConfiguration.class};
    }

    protected String[] getServletMappings() {
        return new String[]{"/*"};
    }
}
